package com.hejjon.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hejjon.core.domain.entity.FeaturePublishRecord;
import com.hejjon.domain.dto.FeaturePublishInfoDTO;
import com.hejjon.domain.vo.FeaturePublishDetailVO;
import com.hejjon.domain.vo.FeaturePublishRecordVO;

import java.util.List;

public interface IFeaturePublishRecordService extends IService<FeaturePublishRecord> {


    boolean saveFeaturePublishInfo(FeaturePublishInfoDTO featurePublishInfoDTO);

    /**
     * 查列表
     */
    List<FeaturePublishRecordVO> listFeaturePublishInfo(FeaturePublishInfoDTO infoDTO);

    /**
     * 移除发布记录
     */
    boolean removeRecord(String recordId, String databaseId);

    /**
     * 更新发布状态
     */
    void updatePublishStatus(String recordId, String status);

    /**
     * 发布详情
     */
    FeaturePublishDetailVO getFeaturePublishDetail(String recordId);


    /**
     * 查看记录是否存在
     */
    boolean existByRecordId(String recordId);

    /**
     * 根据菜单id查询列表
     */
    List<FeaturePublishRecordVO> listByMenuId(String menuId);

}
